const express = require('express');
const router = express.Router();
const {
  getUsers,
  getUser,
  updateUserRemark,
  syncUser
} = require('../controllers/userController');

// 获取用户列表
router.get('/', getUsers);

// 获取用户详情
router.get('/:openid', getUser);

// 更新用户备注
router.put('/:openid/remark', updateUserRemark);

// 同步用户信息
router.post('/:openid/sync', syncUser);

module.exports = router;